package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.common.Result;
import cn.wolfcode.shop.cloud.domain.User;
import cn.wolfcode.shop.cloud.vo.LoginVo;

import java.util.ArrayList;
import java.util.List;

public interface IUserService {
    User selectOne(Long id);

    /**
     * 用户登录校验
     * @param loginVo
     * @return
     */
    String doLogin(LoginVo loginVo);

    /**
     * 延长redis的存活时间
     * @param token
     */
    void refreshRedis(String token);

    /**
     * 从redis中去获取当前登录用户信息
     * @param token
     * @return
     */
    User queryUser(String token);
}
